﻿using BootstrapBlazor.Components;
using JinShun.OA.UI.Enums;
using System.ComponentModel;

namespace JinShun.OA.UI.Models
{
    public class UserModel
    {
        /// <summary>
        /// 主键
        /// </summary>
        [DisplayName("用户编号")]
        public  Guid Id { get;  set; }

        /// <summary>
        /// 姓名
        /// </summary>
        [DisplayName("用户姓名")]
        public string? Name { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        [DisplayName("用户帐号")]
        public string UserName { get; set; } = string.Empty;

        /// <summary>
        /// 头像
        /// </summary>
        [DisplayName("头像")]
        public string? Icon { get; set; }

        /// <summary>
        /// 昵称
        /// </summary>
        [DisplayName("用户昵称")]
        public string? Nick { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        [DisplayName("联系邮箱")]
        public string? Email { get; set; }

        /// <summary>
        /// Ip
        /// </summary>
        [DisplayName("当前IP")]
        public string? Ip { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        [DisplayName("用户地址")]
        public string? Address { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        [DisplayName("手机号码")]
        public long Phone { get; set; }

        /// <summary>
        /// 简介
        /// </summary>
        [DisplayName("用户简介")]
        public string? Introduction { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [DisplayName("用户备注")]
        public string? Remark { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        [DisplayName("用户性别")]
        public SexEnum Sex { get; set; } = SexEnum.Unknown;

        /// <summary>
        /// 部门id
        /// </summary>
        [DisplayName("归属部门")]
        public Guid? DeptId { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [DisplayName("创建时间")]
        public DateTime CreationTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 创建者
        /// </summary>
        [DisplayName("归属代理")]
        public Guid? CreatorId { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        [DisplayName("状态")]
        public bool State { get; set; } = true;
        /// <summary>
        /// 归属的公司
        /// </summary>
        [DisplayName("名称")]
        public string deptName { get; set; }
    }
}
